Optimal. Leaf size=120 \[ -\frac{2 \sqrt{a+i a \tan (c+d x)}}{3 d \tan ^{\frac{3}{2}}(c+d x)}-\frac{2 i \sqrt{a+i a \tan (c+d x)}}{3 d \sqrt{\tan (c+d x)}}-\frac{(1-i) \sqrt{a} \tanh ^{-1}\left (\frac{(1+i) \sqrt{a} \sqrt{\tan (c+d x)}}{\sqrt{a+i a \tan (c+d x)}}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.271081, antiderivative size = 120, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.179, Rules used = {3561, 3598, 12, 3544, 205} \[ -\frac{2 \sqrt{a+i a \tan (c+d x)}}{3 d \tan ^{\frac{3}{2}}(c+d x)}-\frac{2 i \sqrt{a+i a \tan (c+d x)}}{3 d \sqrt{\tan (c+d x)}}-\frac{(1-i) \sqrt{a} \tanh ^{-1}\left (\frac{(1+i) \sqrt{a} \sqrt{\tan (c+d x)}}{\sqrt{a+i a \tan (c+d x)}}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3561
Rule 3598
Rule 12
Rule 3544
Rule 205
Rubi steps
\begin{align*} \int \frac{\sqrt{a+i a \tan (c+d x)}}{\tan ^{\frac{5}{2}}(c+d x)} \, dx &=-\frac{2 \sqrt{a+i a \tan (c+d x)}}{3 d \tan ^{\frac{3}{2}}(c+d x)}+\frac{2 \int \frac{\left (\frac{i a}{2}-a \tan (c+d x)\right ) \sqrt{a+i a \tan (c+d x)}}{\tan ^{\frac{3}{2}}(c+d x)} \, dx}{3 a}\\ &=-\frac{2 \sqrt{a+i a \tan (c+d x)}}{3 d \tan ^{\frac{3}{2}}(c+d x)}-\frac{2 i \sqrt{a+i a \tan (c+d x)}}{3 d \sqrt{\tan (c+d x)}}+\frac{4 \int -\frac{3 a^2 \sqrt{a+i a \tan (c+d x)}}{4 \sqrt{\tan (c+d x)}} \, dx}{3 a^2}\\ &=-\frac{2 \sqrt{a+i a \tan (c+d x)}}{3 d \tan ^{\frac{3}{2}}(c+d x)}-\frac{2 i \sqrt{a+i a \tan (c+d x)}}{3 d \sqrt{\tan (c+d x)}}-\int \frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{\tan (c+d x)}} \, dx\\ &=-\frac{2 \sqrt{a+i a \tan (c+d x)}}{3 d \tan ^{\frac{3}{2}}(c+d x)}-\frac{2 i \sqrt{a+i a \tan (c+d x)}}{3 d \sqrt{\tan (c+d x)}}+\frac{\left (2 i a^2\right ) \operatorname{Subst}\left (\int \frac{1}{-i a-2 a^2 x^2} \, dx,x,\frac{\sqrt{\tan (c+d x)}}{\sqrt{a+i a \tan (c+d x)}}\right )}{d}\\ &=-\frac{(1-i) \sqrt{a} \tanh ^{-1}\left (\frac{(1+i) \sqrt{a} \sqrt{\tan (c+d x)}}{\sqrt{a+i a \tan (c+d x)}}\right )}{d}-\frac{2 \sqrt{a+i a \tan (c+d x)}}{3 d \tan ^{\frac{3}{2}}(c+d x)}-\frac{2 i \sqrt{a+i a \tan (c+d x)}}{3 d \sqrt{\tan (c+d x)}}\\ \end{align*}
Mathematica [F] time = 2.3501, size = 0, normalized size = 0. \[ \int \frac{\sqrt{a+i a \tan (c+d x)}}{\tan ^{\frac{5}{2}}(c+d x)} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.061, size = 196, normalized size = 1.6 \begin{align*}{\frac{1}{6\,d} \left ( 3\,i\sqrt{2}\ln \left ({\frac{1}{\tan \left ( dx+c \right ) +i} \left ( 2\,\sqrt{2}\sqrt{-ia}\sqrt{a\tan \left ( dx+c \right ) \left ( 1+i\tan \left ( dx+c \right ) \right ) }-ia+3\,a\tan \left ( dx+c \right ) \right ) } \right ) \left ( \tan \left ( dx+c \right ) \right ) ^{2}a-4\,i\tan \left ( dx+c \right ) \sqrt{-ia}\sqrt{a\tan \left ( dx+c \right ) \left ( 1+i\tan \left ( dx+c \right ) \right ) }-4\,\sqrt{a\tan \left ( dx+c \right ) \left ( 1+i\tan \left ( dx+c \right ) \right ) }\sqrt{-ia} \right ) \sqrt{a \left ( 1+i\tan \left ( dx+c \right ) \right ) } \left ( \tan \left ( dx+c \right ) \right ) ^{-{\frac{3}{2}}}{\frac{1}{\sqrt{a\tan \left ( dx+c \right ) \left ( 1+i\tan \left ( dx+c \right ) \right ) }}}{\frac{1}{\sqrt{-ia}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.25346, size = 1307, normalized size = 10.89 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.20029, size = 1085, normalized size = 9.04 \begin{align*} \frac{8 \, \sqrt{2} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt{\frac{-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}{\left (e^{\left (4 i \, d x + 4 i \, c\right )} + e^{\left (2 i \, d x + 2 i \, c\right )}\right )} e^{\left (i \, d x + i \, c\right )} - 3 \,{\left (d e^{\left (4 i \, d x + 4 i \, c\right )} - 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt{-\frac{2 i \, a}{d^{2}}} \log \left ({\left (\sqrt{2} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt{\frac{-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}{\left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )} e^{\left (i \, d x + i \, c\right )} + d \sqrt{-\frac{2 i \, a}{d^{2}}} e^{\left (2 i \, d x + 2 i \, c\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}\right ) + 3 \,{\left (d e^{\left (4 i \, d x + 4 i \, c\right )} - 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt{-\frac{2 i \, a}{d^{2}}} \log \left ({\left (\sqrt{2} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt{\frac{-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}{\left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )} e^{\left (i \, d x + i \, c\right )} - d \sqrt{-\frac{2 i \, a}{d^{2}}} e^{\left (2 i \, d x + 2 i \, c\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}\right )}{6 \,{\left (d e^{\left (4 i \, d x + 4 i \, c\right )} - 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.31783, size = 154, normalized size = 1.28 \begin{align*} \frac{2 \, \sqrt{-2 \,{\left (i \, a \tan \left (d x + c\right ) + a\right )} a + 2 \, a^{2}} a^{3} \log \left (\sqrt{i \, a \tan \left (d x + c\right ) + a}\right )}{-\left (i - 1\right ) \,{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{4} + \left (5 i - 5\right ) \,{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{3} a - \left (9 i - 9\right ) \,{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{2} a^{2} + \left (7 i - 7\right ) \,{\left (i \, a \tan \left (d x + c\right ) + a\right )} a^{3} - \left (2 i - 2\right ) \, a^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]